package com.naiterui.ehp.bs.doctor.repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.QuickReply;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IQuickReplyRepository extends BaseJpaRepository<QuickReply, Integer>  {

    List<QuickReply> findByDoctorIdOrderByCreatedAtDesc(Long doctorId);

    List<QuickReply> findByDoctorIdAndTypeOrderByIdDesc(Long doctorId, Integer type);


}
